﻿using MediatR;
using System.ComponentModel.DataAnnotations;

namespace RBACDuYaJun.Api.Appliction.Command.LeaveCommand
{
    public class LeaveUpdateCommand:IRequest<int>
    {
        /// <summary>
        /// 请假ID
        /// </summary>
        [Key]
        public int LeaveId { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string? LeaveName { get; set; }
        /// <summary>
        /// 部门
        /// </summary>
        public int Pid { get; set; }
        /// <summary>
        /// 请假类别
        /// </summary>
        public string? LeaveType { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime LeaveSdate { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime LeaveEdate { get; set; }
        /// <summary>
        /// 统计小时
        /// </summary>
        public int DateNum { get; set; }
        /// <summary>
        /// 报道时间
        /// </summary>
        public DateTime ComeDate { get; set; }
        /// <summary>
        /// 请假原因
        /// </summary>
        public string? LeaveReason { get; set; }
        /// <summary>
        /// 部门领导
        /// </summary>
        public string? Rolenames { get; set; }
     public string?   addName { get; set; }
        public DateTime? addDate {  get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string? updateName { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? updateDate { get; set; }
    }
}
